More inlines
This commit is contained in:
parent
dcbfa1f0e3
commit
c2e72e5f0a
3 changed files with 3 additions and 1 deletions
|
@ -74,6 +74,7 @@ pub struct Case<'a> {
|
|||
}
|
||||
|
||||
impl<'a> Case<'a> {
|
||||
#[inline(always)]
|
||||
pub fn new(fabric_mgr: &'a RefCell<FabricMgr>, rand: Rand) -> Self {
|
||||
Self { fabric_mgr, rand }
|
||||
}
|
||||
|
|
|
@ -41,6 +41,7 @@ pub struct SecureChannel<'a> {
|
|||
}
|
||||
|
||||
impl<'a> SecureChannel<'a> {
|
||||
#[inline(always)]
|
||||
pub fn new(
|
||||
pase: &'a RefCell<PaseMgr>,
|
||||
fabric_mgr: &'a RefCell<FabricMgr>,
|
||||
|
|
|
@ -43,7 +43,6 @@ enum PaseMgrState {
|
|||
Disabled,
|
||||
}
|
||||
|
||||
// Could this lock be avoided?
|
||||
pub struct PaseMgr {
|
||||
state: PaseMgrState,
|
||||
epoch: Epoch,
|
||||
|
@ -51,6 +50,7 @@ pub struct PaseMgr {
|
|||
}
|
||||
|
||||
impl PaseMgr {
|
||||
#[inline(always)]
|
||||
pub fn new(epoch: Epoch, rand: Rand) -> Self {
|
||||
Self {
|
||||
state: PaseMgrState::Disabled,
|
||||
|
|
Loading…
Add table
Reference in a new issue