pub struct InboxState<F: Fetcher, H: ActivityHandler> { /* private fields */ }Expand description
Shared state handed to the inbox handler.
Cheap to clone (the pipeline is itself Arc-shared internally).
Implementations§
Source§impl<F, H> InboxState<F, H>where
F: Fetcher,
H: ActivityHandler,
impl<F, H> InboxState<F, H>where
F: Fetcher,
H: ActivityHandler,
Sourcepub fn new(pipeline: InboxPipeline<F, H>) -> Self
pub fn new(pipeline: InboxPipeline<F, H>) -> Self
Wraps pipeline in a state object using the
DEFAULT_MAX_INBOX_BYTES body cap.
Sourcepub const fn with_max_body_bytes(self, bytes: usize) -> Self
pub const fn with_max_body_bytes(self, bytes: usize) -> Self
Overrides the maximum inbox body size.
Trait Implementations§
Source§impl<F, H> Clone for InboxState<F, H>where
F: Fetcher,
H: ActivityHandler,
impl<F, H> Clone for InboxState<F, H>where
F: Fetcher,
H: ActivityHandler,
Auto Trait Implementations§
impl<F, H> !RefUnwindSafe for InboxState<F, H>
impl<F, H> !UnwindSafe for InboxState<F, H>
impl<F, H> Freeze for InboxState<F, H>
impl<F, H> Send for InboxState<F, H>
impl<F, H> Sync for InboxState<F, H>
impl<F, H> Unpin for InboxState<F, H>
impl<F, H> UnsafeUnpin for InboxState<F, H>
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