pub struct FederState { /* private fields */ }Expand description
In-memory state used by portable core flows.
Implementations§
Source§impl FederState
impl FederState
pub fn new(config: FederConfig) -> Self
pub fn local_actor(&self) -> &Actor
pub fn followers(&self) -> &[Follower]
Sourcepub fn delivery_targets(&self) -> &[DeliveryTarget]
pub fn delivery_targets(&self) -> &[DeliveryTarget]
Delivery targets known from embedded actor data.
ID-only followers are tracked in followers, but they do not produce a
delivery target until a runtime or later core flow resolves actor data.
pub fn objects(&self) -> &[Object]
pub fn activities(&self) -> &[Activity]
Trait Implementations§
Source§impl Clone for FederState
impl Clone for FederState
Source§fn clone(&self) -> FederState
fn clone(&self) -> FederState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FederState
impl Debug for FederState
impl Eq for FederState
Source§impl PartialEq for FederState
impl PartialEq for FederState
Source§fn eq(&self, other: &FederState) -> bool
fn eq(&self, other: &FederState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FederState
Auto Trait Implementations§
impl Freeze for FederState
impl RefUnwindSafe for FederState
impl Send for FederState
impl Sync for FederState
impl Unpin for FederState
impl UnsafeUnpin for FederState
impl UnwindSafe for FederState
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