pub struct S3Server<B: StorageBackend> {
pub host: SocketAddr,
pub state: State<B>,
}Fields§
§host: SocketAddr§state: State<B>Trait Implementations§
Source§impl<B: StorageBackend> Component for S3Server<B>
impl<B: StorageBackend> Component for S3Server<B>
Source§fn info(&self) -> ComponentInfo
fn info(&self) -> ComponentInfo
Returns an optional name for the component. Read more
Source§async fn run(
&self,
cancellation_token: CancellationToken,
) -> Result<(), MadError>
async fn run( &self, cancellation_token: CancellationToken, ) -> Result<(), MadError>
Main execution phase of the component. Read more
Auto Trait Implementations§
impl<B> Freeze for S3Server<B>where
B: Freeze,
impl<B> RefUnwindSafe for S3Server<B>where
B: RefUnwindSafe,
impl<B> Send for S3Server<B>
impl<B> Sync for S3Server<B>
impl<B> Unpin for S3Server<B>where
B: Unpin,
impl<B> UnsafeUnpin for S3Server<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for S3Server<B>where
B: UnwindSafe,
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> IntoComponent for Twhere
T: Component,
impl<T> IntoComponent for Twhere
T: Component,
Source§fn into_component(self) -> SharedComponent
fn into_component(self) -> SharedComponent
Converts self into an Arc-wrapped component.
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