pub struct HostedContentPuts { /* private fields */ }Expand description
The uploads a provider keeps open for the callers that began them over a session, each answerable only to its own caller.
Implementations§
Source§impl HostedContentPuts
impl HostedContentPuts
Sourcepub fn step(
&self,
store_for: &(dyn Fn(Option<&RemoteActionTarget>) -> Option<Arc<dyn ContentPuts>> + Send + Sync + '_),
caller: &Caller,
step: ContentPutStep,
) -> Result<ContentPutAnswer, ActionCallError>
pub fn step( &self, store_for: &(dyn Fn(Option<&RemoteActionTarget>) -> Option<Arc<dyn ContentPuts>> + Send + Sync + '_), caller: &Caller, step: ContentPutStep, ) -> Result<ContentPutAnswer, ActionCallError>
Answer step from caller, putting into the store store_for answers for the action the
step names, or the one it names for none.
§Errors
What the store refused, an upload the caller has no such open, or bytes that are not hex.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for HostedContentPuts
impl Forget for HostedContentPuts
impl Move for HostedContentPuts
impl RefUnwindSafe for HostedContentPuts
impl Send for HostedContentPuts
impl Sync for HostedContentPuts
impl Unpin for HostedContentPuts
impl UnsafeUnpin for HostedContentPuts
impl UnwindSafe for HostedContentPuts
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> 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