pub struct Delegations {
pub max: usize,
pub key: Option<PathBuf>,
}Expand description
委任ハーベストの引き受け方
Fields§
§max: usize引き受ける数の上限。超えたら重要度の大きい順に選ぶ
key: Option<PathBuf>委任の鍵のファイル。委任の要求はこの鍵のアドレスに届き、この鍵で復号する。委任する人は NodeKeyLink を
この鍵に向ける。なければ TLS のノードの鍵(certificates の tls.key。catapult と同じ)
Trait Implementations§
Source§impl Clone for Delegations
impl Clone for Delegations
Source§fn clone(&self) -> Delegations
fn clone(&self) -> Delegations
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 Delegations
impl Debug for Delegations
Source§impl Default for Delegations
impl Default for Delegations
Source§impl<'de> Deserialize<'de> for Delegations
impl<'de> Deserialize<'de> for Delegations
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Delegations
Source§impl PartialEq for Delegations
impl PartialEq for Delegations
impl StructuralPartialEq for Delegations
Auto Trait Implementations§
impl Freeze for Delegations
impl RefUnwindSafe for Delegations
impl Send for Delegations
impl Sync for Delegations
impl Unpin for Delegations
impl UnsafeUnpin for Delegations
impl UnwindSafe for Delegations
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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