pub struct LockTime<RelOrAbs: Absolutivity, HeightOrTime: TimeType>(/* private fields */);Expand description
LockTime represents either a nLockTime or a Sequence field. They are represented generically in the same type
Implementations§
Trait Implementations§
Source§impl<RelOrAbs: Clone + Absolutivity, HeightOrTime: Clone + TimeType> Clone for LockTime<RelOrAbs, HeightOrTime>
impl<RelOrAbs: Clone + Absolutivity, HeightOrTime: Clone + TimeType> Clone for LockTime<RelOrAbs, HeightOrTime>
Source§impl<'de, RelOrAbs: Absolutivity, HeightOrTime: TimeType> Deserialize<'de> for LockTime<RelOrAbs, HeightOrTime>
impl<'de, RelOrAbs: Absolutivity, HeightOrTime: TimeType> Deserialize<'de> for LockTime<RelOrAbs, HeightOrTime>
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
Source§impl<RelOrAbs: Absolutivity + JsonSchema, HeightOrTime: TimeType + JsonSchema> JsonSchema for LockTime<RelOrAbs, HeightOrTime>
impl<RelOrAbs: Absolutivity + JsonSchema, HeightOrTime: TimeType + JsonSchema> JsonSchema for LockTime<RelOrAbs, HeightOrTime>
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§impl<RelOrAbs: Ord + Absolutivity, HeightOrTime: Ord + TimeType> Ord for LockTime<RelOrAbs, HeightOrTime>
impl<RelOrAbs: Ord + Absolutivity, HeightOrTime: Ord + TimeType> Ord for LockTime<RelOrAbs, HeightOrTime>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<RelOrAbs: PartialEq + Absolutivity, HeightOrTime: PartialEq + TimeType> PartialEq for LockTime<RelOrAbs, HeightOrTime>
impl<RelOrAbs: PartialEq + Absolutivity, HeightOrTime: PartialEq + TimeType> PartialEq for LockTime<RelOrAbs, HeightOrTime>
Source§impl<RelOrAbs: PartialOrd + Absolutivity, HeightOrTime: PartialOrd + TimeType> PartialOrd for LockTime<RelOrAbs, HeightOrTime>
impl<RelOrAbs: PartialOrd + Absolutivity, HeightOrTime: PartialOrd + TimeType> PartialOrd for LockTime<RelOrAbs, HeightOrTime>
Source§impl<RelOrAbs: Absolutivity, HeightOrTime: TimeType> Serialize for LockTime<RelOrAbs, HeightOrTime>
impl<RelOrAbs: Absolutivity, HeightOrTime: TimeType> Serialize for LockTime<RelOrAbs, HeightOrTime>
impl<RelOrAbs: Copy + Absolutivity, HeightOrTime: Copy + TimeType> Copy for LockTime<RelOrAbs, HeightOrTime>
impl<RelOrAbs: Eq + Absolutivity, HeightOrTime: Eq + TimeType> Eq for LockTime<RelOrAbs, HeightOrTime>
impl<RelOrAbs: Absolutivity, HeightOrTime: TimeType> StructuralPartialEq for LockTime<RelOrAbs, HeightOrTime>
Auto Trait Implementations§
impl<RelOrAbs, HeightOrTime> Freeze for LockTime<RelOrAbs, HeightOrTime>
impl<RelOrAbs, HeightOrTime> RefUnwindSafe for LockTime<RelOrAbs, HeightOrTime>where
RelOrAbs: RefUnwindSafe,
HeightOrTime: RefUnwindSafe,
impl<RelOrAbs, HeightOrTime> Send for LockTime<RelOrAbs, HeightOrTime>
impl<RelOrAbs, HeightOrTime> Sync for LockTime<RelOrAbs, HeightOrTime>
impl<RelOrAbs, HeightOrTime> Unpin for LockTime<RelOrAbs, HeightOrTime>
impl<RelOrAbs, HeightOrTime> UnwindSafe for LockTime<RelOrAbs, HeightOrTime>where
RelOrAbs: UnwindSafe,
HeightOrTime: UnwindSafe,
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