pub struct TransferService { /* private fields */ }Implementations§
Source§impl TransferService
impl TransferService
pub fn new(manager: TransferManagerRef, db: TransferRepoRef) -> Self
pub async fn start( &self, req: DataFlowStartMessage, ) -> Result<DataFlowResponseMessage>
pub async fn get(&self, id: &str) -> Result<Option<Transfer>>
pub async fn suspend(&self, id: String) -> Result<()>
pub async fn terminate(&self, id: String, reason: Option<String>) -> Result<()>
Trait Implementations§
Source§impl Clone for TransferService
impl Clone for TransferService
Source§fn clone(&self) -> TransferService
fn clone(&self) -> TransferService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> FromMiwaContext<'a> for TransferService
impl<'a> FromMiwaContext<'a> for TransferService
fn from_context(context: &'a MiwaContext) -> MiwaResult<Self>
Auto Trait Implementations§
impl Freeze for TransferService
impl !RefUnwindSafe for TransferService
impl Send for TransferService
impl Sync for TransferService
impl Unpin for TransferService
impl !UnwindSafe for TransferService
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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