target
ModuleWhat sources and destinations share: errors, warnings, the cache, and HTTP calls to the service they read or write.
Contents
use utopia_migration::Target;pub struct TargetThe state every source and destination has: the cache it shares with
its transfer, the errors and warnings it collected, the root resource
of the current run, and the base URL and headers of Target::call.
use utopia_migration::target::Body;pub enum BodyAn HTTP response of [Target::call]: its body, decoded when JSON.
use utopia_migration::target::AsAny;pub trait AsAny: std::any::AnyDowncasting of sources and destinations to their concrete types (to read a mock's or a destination's own state after a transfer that owns it).
pub type Params = ArrayRequest parameters of Target::call.
pub const CONNECT_TIMEOUT: i64 = 10Seconds to wait for a remote to accept the connection.
pub const REQUEST_TIMEOUT: i64 = 30Seconds an Appwrite SDK request may take in total (its requests are single API pages and file chunks).
pub const STALL_TIMEOUT: i64 = 30Seconds a request may go without receiving a byte before it is abandoned, so transfers of any length stay alive while data arrives.