[][src]Trait splinter::admin::service::AdminCommands

pub trait AdminCommands: Send + Sync {
    fn submit_circuit_change(
        &self,
        circuit_change: CircuitManagementPayload
    ) -> Result<(), AdminServiceError>;
fn add_event_subscriber(
        &self,
        event_type: &str,
        subscriber: Box<dyn AdminServiceEventSubscriber>
    ) -> Result<(), AdminServiceError>;
fn get_events_since(
        &self,
        since_timestamp: &SystemTime,
        event_type: &str
    ) -> Result<Events, AdminServiceError>;
fn clone_boxed(&self) -> Box<dyn AdminCommands>;
fn fetch_proposal(
        &self,
        circuit_id: String
    ) -> Result<Option<CircuitProposal>, AdminServiceError>;
fn list_proposals(&self) -> Result<Proposals, AdminServiceError>; }

Required methods

fn submit_circuit_change(
    &self,
    circuit_change: CircuitManagementPayload
) -> Result<(), AdminServiceError>

fn add_event_subscriber(
    &self,
    event_type: &str,
    subscriber: Box<dyn AdminServiceEventSubscriber>
) -> Result<(), AdminServiceError>

fn get_events_since(
    &self,
    since_timestamp: &SystemTime,
    event_type: &str
) -> Result<Events, AdminServiceError>

fn clone_boxed(&self) -> Box<dyn AdminCommands>

fn fetch_proposal(
    &self,
    circuit_id: String
) -> Result<Option<CircuitProposal>, AdminServiceError>

fn list_proposals(&self) -> Result<Proposals, AdminServiceError>

Loading content...

Implementors

Loading content...