pub struct OrderedEndpoint<'a> { /* private fields */ }Implementations§
Source§impl OrderedEndpoint<'_>
impl OrderedEndpoint<'_>
Sourcepub fn prepare_standby_configuration(
&mut self,
request: Uuid,
candidate: &SignedOwnerCandidate,
peer: (&str, &[u8]),
now: u64,
) -> Result<ConfigurationPreparation>
pub fn prepare_standby_configuration( &mut self, request: Uuid, candidate: &SignedOwnerCandidate, peer: (&str, &[u8]), now: u64, ) -> Result<ConfigurationPreparation>
Create only a configuration stream. Until its grant is installed it is unavailable to the dispatcher and cannot send application traffic.
Sourcepub fn install_standby_configuration(
&mut self,
request: Uuid,
grant: &SignedConfigurationGrant,
now: u64,
) -> Result<ConfigurationInvitation>
pub fn install_standby_configuration( &mut self, request: Uuid, grant: &SignedConfigurationGrant, now: u64, ) -> Result<ConfigurationInvitation>
Install the old owner’s authorization without activating the candidate. Exact installed retries need neither a fresh candidate nor a fresh lease.
Source§impl OrderedEndpoint<'_>
impl OrderedEndpoint<'_>
Sourcepub fn configuration_streams(
&mut self,
now: u64,
) -> Result<Vec<ConfigurationStream>>
pub fn configuration_streams( &mut self, now: u64, ) -> Result<Vec<ConfigurationStream>>
Only established, still-authorized configuration streams are eligible. Expiry alone does not hide the recovery route; known revocation does.
Sourcepub fn create_configuration(
&mut self,
owner: &OwnerKey,
request: Uuid,
peer: (&str, &[u8]),
now: u64,
) -> Result<ConfigurationInvitation>
pub fn create_configuration( &mut self, owner: &OwnerKey, request: Uuid, peer: (&str, &[u8]), now: u64, ) -> Result<ConfigurationInvitation>
Grants full configuration access to one trusted daemon. Both node keys and the exact initial checkpoint are signed by the separate owner key.
pub fn join_configuration( &mut self, invitation: &ConfigurationInvitation, now: u64, ) -> Result<()>
Sourcepub fn next_configuration(
&mut self,
group: &[u8],
request: Uuid,
now: u64,
) -> Result<Option<Packet>>
pub fn next_configuration( &mut self, group: &[u8], request: Uuid, now: u64, ) -> Result<Option<Packet>>
Publish the next bounded fragment of already accepted owner history. Applying a new local signed revision and its history is a separate owner transaction; this outbox then catches every configured peer up to it.
pub fn rotate_configuration( &mut self, group: &[u8], request: Uuid, now: u64, ) -> Result<Packet>
pub fn stage_configuration( &mut self, packet: &Packet, now: u64, ) -> Result<Staged>
pub fn drain_configuration( &mut self, group: &[u8], limit: usize, now: u64, ) -> Result<Vec<Received>>
pub fn configuration_status( &mut self, group: &[u8], now: u64, ) -> Result<StreamStatus>
pub fn configuration_outbox( &mut self, group: &[u8], after: Option<u64>, limit: usize, now: u64, ) -> Result<Vec<Packet>>
Source§impl OrderedEndpoint<'_>
impl OrderedEndpoint<'_>
Sourcepub fn receipt(&mut self, group: &[u8], now: u64) -> Result<Receipt>
pub fn receipt(&mut self, group: &[u8], now: u64) -> Result<Receipt>
Sign only a committed stream head, including durably buffered plaintext or configuration fragments. This does not acknowledge chat execution.
Sourcepub fn confirm(
&mut self,
receipt: &Receipt,
reader: &str,
now: u64,
) -> Result<()>
pub fn confirm( &mut self, receipt: &Receipt, reader: &str, now: u64, ) -> Result<()>
reader comes from the caller’s independently pinned link or owner grant.
pub fn confirmed_next(&self, group: &[u8]) -> Result<u64>
Source§impl OrderedEndpoint<'_>
impl OrderedEndpoint<'_>
pub fn storage_status(&self) -> Result<Value>
pub fn clean_storage(&mut self, dry_run: bool) -> Result<Value>
Source§impl<'a> OrderedEndpoint<'a>
impl<'a> OrderedEndpoint<'a>
pub fn open(home: &Path, identity: &'a NodeIdentity) -> Result<Self>
Sourcepub fn open_runtime(home: &Path, identity: &'a NodeIdentity) -> Result<Self>
pub fn open_runtime(home: &Path, identity: &'a NodeIdentity) -> Result<Self>
Attach trusted daemon code to the live RPC database. Configuration reception and RPC permission checks then share one authority checkpoint.
pub fn initialize(&mut self, state: &VerifiedState, now: u64) -> Result<()>
pub fn key_package(&mut self, request: Uuid, now: u64) -> Result<Vec<u8>>
pub fn create( &mut self, request: Uuid, peers: &[(&str, &[u8])], now: u64, ) -> Result<Packet>
Sourcepub fn join(
&mut self,
packet: &Packet,
writer: &str,
expected: &[&str],
now: u64,
) -> Result<()>
pub fn join( &mut self, packet: &Packet, writer: &str, expected: &[&str], now: u64, ) -> Result<()>
Writer and roster must be independently approved locally. The outer packet signature and MLS Welcome creator must both authenticate that writer.
pub fn send( &mut self, group: &[u8], id: Uuid, body: &[u8], now: u64, ) -> Result<Packet>
pub fn rotate(&mut self, group: &[u8], id: Uuid, now: u64) -> Result<Packet>
pub fn remove_revoked( &mut self, group: &[u8], id: Uuid, now: u64, ) -> Result<Packet>
Sourcepub fn stage(&mut self, packet: &Packet, now: u64) -> Result<Staged>
pub fn stage(&mut self, packet: &Packet, now: u64) -> Result<Staged>
Verify before buffering, including writer authority. No MLS keys advance here. Duplicate and conflicting sequence slots cannot overwrite each other.
Sourcepub fn drain(
&mut self,
group: &[u8],
limit: usize,
now: u64,
) -> Result<Vec<Received>>
pub fn drain( &mut self, group: &[u8], limit: usize, now: u64, ) -> Result<Vec<Received>>
Apply at most limit contiguous packets. Each packet commits separately:
a later invalid packet cannot roll back earlier accepted work. Errors leave
the failing packet queued for diagnosis, never skip an authenticated gap.
pub fn status(&mut self, group: &[u8], now: u64) -> Result<StreamStatus>
Auto Trait Implementations§
impl<'a> !Freeze for OrderedEndpoint<'a>
impl<'a> !RefUnwindSafe for OrderedEndpoint<'a>
impl<'a> !Sync for OrderedEndpoint<'a>
impl<'a> !UnwindSafe for OrderedEndpoint<'a>
impl<'a> Forget for OrderedEndpoint<'a>
impl<'a> Move for OrderedEndpoint<'a>
impl<'a> Send for OrderedEndpoint<'a>
impl<'a> Unpin for OrderedEndpoint<'a>
impl<'a> UnsafeUnpin for OrderedEndpoint<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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