Struct xpcom::interfaces::nsIASN1Sequence
[−]
[src]
#[repr(C)]pub struct nsIASN1Sequence { /* fields omitted */ }
interface nsIASN1Sequence : nsIASN1Object
/**
* This represents a sequence of ASN.1 objects,
* where ASN.1 is "Abstract Syntax Notation number One".
*
* Overview of how this ASN1 interface is intended to
* work.
*
* First off, the nsIASN1Sequence is any type in ASN1
* that consists of sub-elements (ie SEQUENCE, SET)
* nsIASN1Printable Items are all the other types that
* can be viewed by themselves without interpreting further.
* Examples would include INTEGER, UTF-8 STRING, OID.
* These are not intended to directly reflect the numberous
* types that exist in ASN1, but merely an interface to ease
* producing a tree display the ASN1 structure of any DER
* object.
*
* The additional state information carried in this interface
* makes it fit for being used as the data structure
* when working with visual reprenstation of ASN.1 objects
* in a human user interface, like in a tree widget
* where open/close state of nodes must be remembered.
*/
Methods
impl nsIASN1Sequence
[src]
pub fn coerce<T: nsIASN1SequenceCoerce>(&self) -> &T
[src]
Cast this nsIASN1Sequence
to one of its base interfaces.
impl nsIASN1Sequence
[src]
pub unsafe fn GetASN1Objects(
&self,
aASN1Objects: *mut *const nsIMutableArray
) -> nsresult
[src]
&self,
aASN1Objects: *mut *const nsIMutableArray
) -> nsresult
/**
* The array of objects stored in the sequence.
*/
attribute nsIMutableArray ASN1Objects;
pub unsafe fn SetASN1Objects(
&self,
aASN1Objects: *const nsIMutableArray
) -> nsresult
[src]
&self,
aASN1Objects: *const nsIMutableArray
) -> nsresult
/**
* The array of objects stored in the sequence.
*/
attribute nsIMutableArray ASN1Objects;
pub unsafe fn GetIsValidContainer(
&self,
aIsValidContainer: *mut bool
) -> nsresult
[src]
&self,
aIsValidContainer: *mut bool
) -> nsresult
/**
* Whether the node at this position in the ASN.1 data structure
* sequence contains sub elements understood by the
* application.
*/
attribute boolean isValidContainer;
pub unsafe fn SetIsValidContainer(&self, aIsValidContainer: bool) -> nsresult
[src]
/**
* Whether the node at this position in the ASN.1 data structure
* sequence contains sub elements understood by the
* application.
*/
attribute boolean isValidContainer;
pub unsafe fn GetIsExpanded(&self, aIsExpanded: *mut bool) -> nsresult
[src]
/**
* Whether the contained objects should be shown or hidden.
* A UI implementation can use this flag to store the current
* expansion state when shown in a tree widget.
*/
attribute boolean isExpanded;
pub unsafe fn SetIsExpanded(&self, aIsExpanded: bool) -> nsresult
[src]
/**
* Whether the contained objects should be shown or hidden.
* A UI implementation can use this flag to store the current
* expansion state when shown in a tree widget.
*/
attribute boolean isExpanded;
Methods from Deref<Target = nsIASN1Object>
pub fn coerce<T: nsIASN1ObjectCoerce>(&self) -> &T
[src]
Cast this nsIASN1Object
to one of its base interfaces.
pub const ASN1_END_CONTENTS: i64
pub const ASN1_BOOLEAN: i64
pub const ASN1_INTEGER: i64
pub const ASN1_BIT_STRING: i64
pub const ASN1_OCTET_STRING: i64
pub const ASN1_NULL: i64
pub const ASN1_OBJECT_ID: i64
pub const ASN1_ENUMERATED: i64
pub const ASN1_UTF8_STRING: i64
pub const ASN1_SEQUENCE: i64
pub const ASN1_SET: i64
pub const ASN1_PRINTABLE_STRING: i64
pub const ASN1_T61_STRING: i64
pub const ASN1_IA5_STRING: i64
pub const ASN1_UTC_TIME: i64
pub const ASN1_GEN_TIME: i64
pub const ASN1_VISIBLE_STRING: i64
pub const ASN1_UNIVERSAL_STRING: i64
pub const ASN1_BMP_STRING: i64
pub const ASN1_HIGH_TAG_NUMBER: i64
pub const ASN1_CONTEXT_SPECIFIC: i64
pub const ASN1_APPLICATION: i64
pub const ASN1_PRIVATE: i64
pub unsafe fn GetType(&self, aType: *mut uint32_t) -> nsresult
[src]
/**
* "type" will be equal to one of the defined object identifiers.
*/
attribute unsigned long type;
pub unsafe fn SetType(&self, aType: uint32_t) -> nsresult
[src]
/**
* "type" will be equal to one of the defined object identifiers.
*/
attribute unsigned long type;
pub unsafe fn GetTag(&self, aTag: *mut uint32_t) -> nsresult
[src]
/**
* This contains a tag as explained in ASN.1 standards documents.
*/
attribute unsigned long tag;
pub unsafe fn SetTag(&self, aTag: uint32_t) -> nsresult
[src]
/**
* This contains a tag as explained in ASN.1 standards documents.
*/
attribute unsigned long tag;
pub unsafe fn GetDisplayName(&self, aDisplayName: &mut nsAString) -> nsresult
[src]
/**
* "displayName" contains a human readable explanatory label.
*/
attribute AString displayName;
pub unsafe fn SetDisplayName(&self, aDisplayName: &nsAString) -> nsresult
[src]
/**
* "displayName" contains a human readable explanatory label.
*/
attribute AString displayName;
pub unsafe fn GetDisplayValue(&self, aDisplayValue: &mut nsAString) -> nsresult
[src]
/**
* "displayValue" contains the human readable value.
*/
attribute AString displayValue;
pub unsafe fn SetDisplayValue(&self, aDisplayValue: &nsAString) -> nsresult
[src]
/**
* "displayValue" contains the human readable value.
*/
attribute AString displayValue;
Trait Implementations
impl XpCom for nsIASN1Sequence
[src]
const IID: nsIID
IID: nsIID = nsID(3065599974, 7633, 4530, [137, 215, 227, 6, 36, 245, 11, 0])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIASN1Sequence
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIASN1Sequence
[src]
type Target = nsIASN1Object
The resulting type after dereferencing.
fn deref(&self) -> &nsIASN1Object
[src]
Dereferences the value.