[−][src]Enum lnpbp::rgb::contract::OwnedState
State data are assigned to a seal definition, which means that they are owned by a person controlling spending of the seal UTXO, unless the seal is closed, indicating that a transfer of ownership had taken place
Variants
Fields of Confidential
seal_definition: Confidential
assigned_state: STATE::Confidential
Fields of ConfidentialSeal
seal_definition: Confidential
assigned_state: STATE::Revealed
Fields of ConfidentialAmount
seal_definition: Revealed
assigned_state: STATE::Confidential
Implementations
impl<STATE> OwnedState<STATE> where
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
[src]
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
pub fn seal_definition_confidential(&self) -> Confidential
[src]
pub fn seal_definition(&self) -> Option<Revealed>
[src]
pub fn assigned_state_confidential(&self) -> STATE::Confidential
[src]
pub fn assigned_state(&self) -> Option<&STATE::Revealed>
[src]
pub fn reveal_seals<'a>(
&mut self,
known_seals: impl Iterator<Item = &'a OutpointReveal>
) -> usize
[src]
&mut self,
known_seals: impl Iterator<Item = &'a OutpointReveal>
) -> usize
Reveals previously known seal information (replacing blind UTXOs with unblind ones). Function is used when a peer receives consignment containing concealed seals for the outputs owned by the peer
Trait Implementations
impl<STATE> AutoConceal for OwnedState<STATE> where
STATE: StateTypes,
STATE::Revealed: Conceal,
STATE::Confidential: PartialEq + Eq,
<STATE as StateTypes>::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
[src]
STATE: StateTypes,
STATE::Revealed: Conceal,
STATE::Confidential: PartialEq + Eq,
<STATE as StateTypes>::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
fn conceal_except(&mut self, seals: &Vec<Confidential>) -> usize
[src]
fn conceal_all(&mut self) -> usize
[src]
impl<STATE: Clone> Clone for OwnedState<STATE> where
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
STATE::Confidential: Clone,
STATE::Revealed: Clone,
STATE::Revealed: Clone,
STATE::Confidential: Clone,
[src]
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
STATE::Confidential: Clone,
STATE::Revealed: Clone,
STATE::Revealed: Clone,
STATE::Confidential: Clone,
fn clone(&self) -> OwnedState<STATE>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<STATE> CommitEncodeWithStrategy for OwnedState<STATE> where
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
[src]
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
type Strategy = UsingConceal
impl<STATE> Conceal for OwnedState<STATE> where
Self: Clone,
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
[src]
Self: Clone,
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
type Confidential = OwnedState<STATE>
fn conceal(&self) -> Self
[src]
impl<STATE: Debug> Debug for OwnedState<STATE> where
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
STATE::Confidential: Debug,
STATE::Revealed: Debug,
STATE::Revealed: Debug,
STATE::Confidential: Debug,
[src]
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
STATE::Confidential: Debug,
STATE::Revealed: Debug,
STATE::Revealed: Debug,
STATE::Confidential: Debug,
impl<STATE> Display for OwnedState<STATE> where
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
[src]
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
impl<STATE> Eq for OwnedState<STATE> where
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
[src]
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
impl<STATE> Ord for OwnedState<STATE> where
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
[src]
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<STATE> PartialEq<OwnedState<STATE>> for OwnedState<STATE> where
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
[src]
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
impl<STATE> PartialOrd<OwnedState<STATE>> for OwnedState<STATE> where
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
[src]
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<STATE> StrictDecode for OwnedState<STATE> where
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
[src]
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
type Error = Error
Implementation-dependent error type
fn strict_decode<D: Read>(d: D) -> Result<Self, Self::Error>
[src]
impl<STATE> StrictEncode for OwnedState<STATE> where
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
[src]
STATE: StateTypes,
STATE::Confidential: PartialEq + Eq,
STATE::Confidential: From<<STATE::Revealed as Conceal>::Confidential>,
EncodingError: From<<STATE::Confidential as StrictEncode>::Error> + From<<STATE::Confidential as StrictDecode>::Error> + From<<STATE::Revealed as StrictEncode>::Error> + From<<STATE::Revealed as StrictDecode>::Error>,
Auto Trait Implementations
impl<STATE> RefUnwindSafe for OwnedState<STATE> where
<STATE as StateTypes>::Confidential: RefUnwindSafe,
<STATE as StateTypes>::Revealed: RefUnwindSafe,
<STATE as StateTypes>::Confidential: RefUnwindSafe,
<STATE as StateTypes>::Revealed: RefUnwindSafe,
impl<STATE> Send for OwnedState<STATE> where
<STATE as StateTypes>::Confidential: Send,
<STATE as StateTypes>::Revealed: Send,
<STATE as StateTypes>::Confidential: Send,
<STATE as StateTypes>::Revealed: Send,
impl<STATE> Sync for OwnedState<STATE> where
<STATE as StateTypes>::Confidential: Sync,
<STATE as StateTypes>::Revealed: Sync,
<STATE as StateTypes>::Confidential: Sync,
<STATE as StateTypes>::Revealed: Sync,
impl<STATE> Unpin for OwnedState<STATE> where
<STATE as StateTypes>::Confidential: Unpin,
<STATE as StateTypes>::Revealed: Unpin,
<STATE as StateTypes>::Confidential: Unpin,
<STATE as StateTypes>::Revealed: Unpin,
impl<STATE> UnwindSafe for OwnedState<STATE> where
<STATE as StateTypes>::Confidential: UnwindSafe,
<STATE as StateTypes>::Revealed: UnwindSafe,
<STATE as StateTypes>::Confidential: UnwindSafe,
<STATE as StateTypes>::Revealed: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,