pub struct TransferRequest<'a> { /* private fields */ }Expand description
Borrowed request passed to a TransferProvider.
Implementations§
Source§impl<'a> TransferRequest<'a>
impl<'a> TransferRequest<'a>
Sourcepub fn source_engine_id(&self) -> &'a EngineId
pub fn source_engine_id(&self) -> &'a EngineId
Return the source engine for this transfer.
§Examples
use tenferro_runtime::{EngineId, TransferRequest};
let source: &EngineId = request.source_engine_id();
assert!(!source.as_str().is_empty());Sourcepub fn source_provider_device_identity(&self) -> &'a ProviderDeviceIdentity
pub fn source_provider_device_identity(&self) -> &'a ProviderDeviceIdentity
Return the immutable source provider/device binding used for this transfer request.
Sourcepub fn source_event_domain_id(&self) -> EventDomainId
pub fn source_event_domain_id(&self) -> EventDomainId
Return the source event domain for this transfer.
§Examples
use tenferro_runtime::{EventDomainId, TransferRequest};
let _: EventDomainId = request.source_event_domain_id();Sourcepub fn source_storage_class(&self) -> &'a StorageClass
pub fn source_storage_class(&self) -> &'a StorageClass
Return the source storage class for this transfer.
§Examples
use tenferro_runtime::{StorageClass, TransferRequest};
let source: &StorageClass = request.source_storage_class();
assert!(!source.as_str().is_empty());Sourcepub fn destination_engine_id(&self) -> &'a EngineId
pub fn destination_engine_id(&self) -> &'a EngineId
Return the destination engine for this transfer.
§Examples
use tenferro_runtime::{EngineId, TransferRequest};
let destination: &EngineId = request.destination_engine_id();
assert!(!destination.as_str().is_empty());Sourcepub fn destination_provider_device_identity(&self) -> &'a ProviderDeviceIdentity
pub fn destination_provider_device_identity(&self) -> &'a ProviderDeviceIdentity
Return the immutable destination provider/device binding used for this transfer request.
Sourcepub fn destination_event_domain_id(&self) -> EventDomainId
pub fn destination_event_domain_id(&self) -> EventDomainId
Return the destination event domain for this transfer.
§Examples
use tenferro_runtime::{EventDomainId, TransferRequest};
let _: EventDomainId = request.destination_event_domain_id();Sourcepub fn destination_storage_class(&self) -> &'a StorageClass
pub fn destination_storage_class(&self) -> &'a StorageClass
Return the destination storage class for this transfer.
§Examples
use tenferro_runtime::{StorageClass, TransferRequest};
let destination: &StorageClass = request.destination_storage_class();
assert!(!destination.as_str().is_empty());Sourcepub fn input(&self) -> &TensorRead<'a>
pub fn input(&self) -> &TensorRead<'a>
Return the tensor read that must be transferred.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TransferRequest<'a>
impl<'a> !RefUnwindSafe for TransferRequest<'a>
impl<'a> Send for TransferRequest<'a>
impl<'a> Sync for TransferRequest<'a>
impl<'a> Unpin for TransferRequest<'a>
impl<'a> UnsafeUnpin for TransferRequest<'a>
impl<'a> !UnwindSafe for TransferRequest<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more