pub struct Delegated { /* private fields */ }Expand description
委任の引き受け
Implementations§
Source§impl Delegated
impl Delegated
Sourcepub fn open(
key: PrivateKey,
network: NetworkIdentifier,
max: usize,
data_directory: &Path,
tip: u64,
) -> Result<Self, NodeError>
pub fn open( key: PrivateKey, network: NetworkIdentifier, max: usize, data_directory: &Path, tip: u64, ) -> Result<Self, NodeError>
data_directory の harvesters.dat、harvesters.height、delegations.yaml を読む。なければ、高さ tip より後の
要求を読む
Sourcepub fn public_key(&self) -> PublicKey
pub fn public_key(&self) -> PublicKey
委任の鍵の公開鍵。委任する人は、NodeKeyLink をこれに向け、要求をこれのアドレスに送る
Sourcepub fn statuses(&self) -> Vec<DelegationStatus>
pub fn statuses(&self) -> Vec<DelegationStatus>
届いた要求ごとの様子。引き受けているもの、待っているもの、最近の引き受けなかったものの順
Auto Trait Implementations§
impl Freeze for Delegated
impl RefUnwindSafe for Delegated
impl Send for Delegated
impl Sync for Delegated
impl Unpin for Delegated
impl UnsafeUnpin for Delegated
impl UnwindSafe for Delegated
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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